<?php

namespace App\Http\Controllers;

use App\User;
use Illuminate\Http\Request;

class FollowerController extends Controller
{
    public function follower(User $user){
        $users=$user->follows()->paginate(10);
        $title='我的粉丝';
        return view('follower',compact('users','title'));
    }
    public function following(User $user){
        $users=$user->following()->paginate(10);
        $title='关注的用户';
        return view('follower',compact('users','title'));
    }

}
